package intelligentCustomer.planning;

/**
 * 反馈结果
 */
public class FeedbackResult {
    private final boolean successful;
    private final String reason;
    private final FeedbackType type;
    private final String suggestion;

    public FeedbackResult(boolean successful, String reason, FeedbackType type) {
        this(successful, reason, type, "");
    }

    public FeedbackResult(boolean successful, String reason, FeedbackType type, String suggestion) {
        this.successful = successful;
        this.reason = reason;
        this.type = type;
        this.suggestion = suggestion;
    }

    public boolean isSuccessful() { return successful; }
    public String getReason() { return reason; }
    public FeedbackType getType() { return type; }
    public String getSuggestion() { return suggestion; }
}

enum FeedbackType {
    SUCCESS,
    RETRY_NEEDED,
    ADJUSTMENT_NEEDED
}